<include file="public:header" />
<script charset="utf-8" src="__STATIC__/js/jquery.js" type="text/javascript"></script>
<style>
.tdtitle {font-family: "宋体";
    height: 32px;
    line-height: 32px;
    padding-right: 5px;
    text-align: right;
    vertical-align: top;}

.tblist thead tr th, .tblist tbody tr.tblist_th td {
    background: url("__STATIC__/images/tblistthbg.gif") repeat-x scroll 0 0 transparent;
    border-right: 1px solid #DDDDDD;
    height: 30px;
    overflow: hidden;
    padding: 0 8px;
    text-align: center;
    white-space: nowrap;
}
.tblist tbody tr, .tbmodify .tblist tbody tr {
    background: none repeat scroll 0 0 #FFFFFF;
}
.tblist {
    border-left: 1px solid #DDDDDD;
    width: 100%;
}	
.tblist tbody tr, .tbmodify .tblist tbody tr {
    background: none repeat scroll 0 0 #FFFFFF;
}
.tblist tbody tr td, .tbmodify .tblist tbody tr td {
    border-bottom: 1px solid #DDDDDD;
    border-left: 0 solid #DDDDDD;
    border-right: 1px solid #DDDDDD;
    line-height: 18px;
    text-align: center;
}
.tblist tbody tr td {
    padding: 2px 4px;
}
.tbdetail {
    width: 100%;
}
.tbdetail td {
    background-color: #FFFFFF;
    height: 32px;
    line-height: 33px;
    padding: 3px 0 3px 5px;
   <!-- text-align: left;-->
}
.tbdetail .ltd {
    padding-left: 5px;
  text-align: left;
}
.tbdetail .rtd {
    padding-right: 5px;
   text-align: right;	
}
</style>
<script charset="utf-8" src="__STATIC__/js/jquery.js" type="text/javascript"></script>
<!--编辑商品-->
<form id="info_form" action="{:u('item_order/edit')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		
		<div class="J_panes">
        <div class="content_list pad_10">
        <div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">基本信息</div>
		
        
       
        
        
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbdetail">
                    <tbody>
                        <tr>
                            <td width="12%" class="tdtitle" >订单编号：</td>
                            <td width="22%">{$info.sn}</td>
                          
                            <td width="12%" class="tdtitle">订单状态：</td>
                            <td width="22%">   
                         <switch name="info.status" >
                         <case value="0"><a href="javascript:;" class="" data="" rel="">待付款</a></case>
                         <case value="1"><a href="javascript:;" class="" data="" rel="">待发货</a></case>
                         <case value="2"><a href="javascript:;" class="" data="" rel="">待收货</a></case>
                         <case value="4"><a href="javascript:;" class="" data="" rel="">完成</a></case>
                        <default /><font color="red">关闭</font>
                          </switch>
                        </td>
                         <td width="12%" class="tdtitle"></td>
                            <td width="22%"></td>
                        </tr>
                        <tr>
                            <td class="tdtitle">下单时间：</td>
                            <td>{$info.add_time|date='Y/m/d H:i:s',###}</td>
                            <td class="tdtitle">付款时间：</td>
                            <td><if condition="$info.support_time eq ''">-<else />{$info.support_time|date='Y/m/d H:i:s',###}</if></td>
                            <td class="tdtitle">商品总额：</td>
                            <td class="red"><span id="labProductTotal">¥{$info.count}</span></td>
                        </tr>
                        <tr>
                            <td class="tdtitle">发票抬头：</td>
                            <td>{$info.invoice}</td>
                        </tr>
                        <tr>
                            <td class="tdtitle">备注：</td>
                            <td>{$info.note}</td>
                        </tr>
                    </tbody>
                </table>
                   <div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">收货人信息</div>    
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbdetail">
                    <tbody>
                        <tr>
                            <td class="tdtitle">收货人账号：</td>
                            <td colspan="5">
                                {$info.user}
                            </td>
                        </tr>
                        <tr>
                            <td width="12%" class="tdtitle">收 货 人：</td>
                            <td width="22%">
                                <span attr="address_display" id="labConsignee">{$fahuoaddress.user_name}</span>
                                <span style="display:none;" attr="address_modify">
                                    <input type="text" class="txt150" id="txtConsignee" maxlength="50" value="address_name" name="txtConsignee">
                                </span>
                            </td>
                            <td width="12%" class="tdtitle">联系手机：</td>
                            <td width="22%">
                                <span attr="address_display" id="labMobile">{$fahuoaddress.user_tel}</span>
                                <span style="display:none;" attr="address_modify">
                                    <input type="text" class="txt150" id="txtMobile" maxlength="50" value="{$info.mobile}" name="txtMobile">
                                </span>
                            </td>
                            <td width="12%" class="tdtitle"></td>
                            <td width="22%">
                                <span attr="address_display" id="labPhone"></span>
                                <span style="display:none;" attr="address_modify">
                                    <input type="text" class="txt150" id="txtPhone" maxlength="50" name="txtPhone">
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdtitle">收货地址：</td>
                            <td colspan="5">
                                <span attr="address_display">
                                   {$fahuoaddress.address}
                                </span>
                               
                                
                            </td>
                        </tr>
                       
                    </tbody>
                </table>
                
                 <div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">商品明细</div>    
                   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tblist">
                    <thead>
                        <tr>
                            <th>商品名称</th>
                            <th width="60">单价</th>
                            <th width="60">数量</th>
                            <th width="60">小计</th>
                        </tr>
                    </thead>
                    <tbody>
                     <tr class="">
						<td class="ltd">{$info.goods}</td>
						<td class="red rtd">¥{$info.price}</td>
						<td>{$info.num}</td>
						<td class="red rtd">¥{$info.count}</td>
					</tr>
                    </tbody>
                </table>
		</div>
      
		
        </div>
      <!--  <a data-height="130" data-width="400" data-id="add" data-title="添加收货地址" data-uri="/index.php?g=admin&amp;m=address&amp;a=add" href="javascript:void(0);" class="add fb J_showdialog"><em>添加收货地址</em></a>-->
      
		<div class="mt10" style="text-align:center;">
		  <switch name="info.status" >
                <case value="0"><!-- 待付款-->
                <a href="{:U('item_order/status',array('orderId'=>$info['sn'],'status'=>1))}">	<input type="button" value="设为已付款" id="dosubmit" name="dosubmit" class="btn btn_submit" ></a>
                </case>  
                <case value="1"><!-- 待发货-->

                    <a class="add fb" href="{:U('Post/add',array('orderId'=>$info['id']))}">
                        <input type="button" value="发货" class="btn btn_submit" >
                    </a>
                </case>  
                <case value="2"><!-- 待收货 -->
                  <a href="{:U('item_order/status',array('orderId'=>$info['sn'],'status'=>4))}"><input type="button" value="设为已收货" id="dosubmit" name="dosubmit" class="btn btn_submit" ></a>
                </case>  
                
                <default />
             </switch>
		
		
		<a href="{:U('item_order/index')}">  <input type="button"  value=" 返回列表 " class="btn btn_cannel"></a></div>
	</div>
</div>
<input type="hidden" name="menuid"  value="{$menuid}"/>
<input type="hidden" name="id" value="{$info.id}" />
</form>
<include file="public:footer" />


</body>
</html>
<script src="__STATIC__/js/jquery/plugins/colorpicker.js"></script>
<script src="__STATIC__/js/kindeditor/kindeditor.js"></script>

